/*jslint maxerr: 50, indent: 4, browser: true */
/*global define */

(function () {
    "use strict";

    define("array.isArray", ["mergeModules", "init"], function (make) {
        var buri = make.mergeModules(arguments),
            config = {
                "compatability": {}
            },
            func = [].constructor.isArray,
            isArray;

        if (!config.compatability.all && !config.compatability["array.isArray"] && typeof func === "function") {
            isArray = func;
        } else {
            isArray = function (obj) {
                return func.call(obj) === "[object Array]";
            };
        }

        isArray.init = function (options) {
            buri.init(config, options);
        };

        return {
            "array": {
                "isArray": isArray
            }
        };
    });
}());
